//
//  Activitylist.m
//  豆瓣YHY
//
//  Created by dllo on 15/10/28.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "Activitylist.h"

@implementation Activitylist
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
//    if ([key isEqualToString:@"image"]) {
//        self.image_hlarge = [UIImage imageNamed:value];
//    }
//    if ([key isEqualToString:@"content"]) {
//        self.content = value;
//    }
   }
//2.实现协议中的编码方法
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.begin_time forKey:@"begin_time"];
    [aCoder encodeObject:self.end_time forKey:@"end_time"];

}

////3.实现协议中解编码方法
//- (instancetype)initWithCoder:(NSCoder *)aDecoder{
//    self = [super init];
//    if (self) {
//        self.movieNamep = [aDecoder decodeObjectForKey:@"movieName"];
//        self.pic_url = [aDecoder decodeObjectForKey:@"pic_url"];
//    }
//    return self;
//}


@end
